package com.wu.Backstage.entity;

import com.wu.Backstage.entity.Po.adminPo;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;


public interface adminEntity extends CrudRepository<adminPo, Integer> {

    @Query("from adminPo where email = ?1")
    adminPo findUserEntityPoEmail(String email);

    @Query("from adminPo where email = ?1 and passwrod = ?2")
    adminPo login(String email,String password);

}
